package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages={"com.example.demo"})
public class DemoApplication {


    public static void main(String[] args) {

        SpringApplication.run(DemoApplication.class, args);

//        StartWorkProcess startProcess = new StartWorkProcess("开始工艺","开始工艺");
//        BCacheAbstractWorkProcess bCacheAbstractWorkProcess = new BCacheAbstractWorkProcess("缓存库工艺","缓存库工艺");
//
//        StartRuler startRuler = new StartRuler();
//        List<WorkProcess> list = new ArrayList<>();
//        list.add(bCacheAbstractWorkProcess);
//        startRuler.setWorkProcessList(list);
//        startProcess.setRuler(startRuler);
//
//        startProcess.start();
//        bCacheAbstractWorkProcess.start();
//
//        Material material = new Material();
//        material.setCode("111111111111");
//
//        startProcess.addMaterial(material);
//
//        try {
//            sleep(2000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
//
//        Material material1 = new Material();
//        material1.setCode("111111111111");
//
//        startProcess.addMaterial(material1);
    }

}
